package logon;

import encoders.IPasswordEncoder;

public abstract class Logon {
	private IPasswordEncoder passwordEncoder;
	
	private String password = new String();
	
	public void setPassword(String password){
		this.password = password;
	}
	
	public void setEncodingMethod(IPasswordEncoder passwordEncoder){
		this.passwordEncoder = passwordEncoder;
	}
	
	public String getPassword(){
		return passwordEncoder.encode(password);
	}
}
